import * as React from 'react';
import classNames from 'classnames';

export interface OptionProps {
	children?: React.ReactNode;
	className?: string;
	value?: string;
}

const Option: React.FC<OptionProps> = props => {
	const prefixCls = 'bh-select';
	const {
		children,
		className,
		...restProps
	} = props;
	const classString = classNames(
		className,
		`${prefixCls}-item`,
		`${prefixCls}-item-option`,
	);

	return (
		<div {...restProps} className={classString}>
		    {children}
		</div>
	)
};

export default Option;